<?php
namespace Foxframe;

class Registry
{
	private static $instance;
	private static $data	= array();

	private function __construct()
	{
		return $this;
	}

	public static function getInstance()
	{
		if (!isset(self::$instance))
			self::$instance	= new self();

		return self::$instance;
	}

	public static function set($param, $value)
	{
		self::$data[$param]	= $value;
	}

	public static function get($param)
	{
		if (isset(self::$data[$param]))
			return self::$data[$param];
	}
}